import { defineStore } from "pinia";
import axios from "axios";

export const useDateStore = defineStore("data", {
    state: () => ({
        //后端请求数据
        data: [],
    }),
    actions: {
       
    },

    //持久化
    persist: {
        enabled: true, // 启用持久化
        strategies: [{ storage: localStorage }], // 持久化策略
    },
});

